package application.openGL;

import org.lwjgl.opengl.GL11;

public abstract class GLApplication2D extends GLApplication
{
    public GLGraphics2D gl;
    @Override
    protected void initOpenGL() 
    {
	GL11.glMatrixMode(GL11.GL_PROJECTION);
	GL11.glLoadIdentity();
	GL11.glOrtho(0, size.width, size.height, 0, 1, -1);
	GL11.glMatrixMode(GL11.GL_MODELVIEW);
	GL11.glDisable(GL11.GL_DEPTH_TEST);
	GL11.glBlendFunc (GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
	gl = new GLGraphics2D();
    }
}
